package com.atmilan.quartz.service.impl;

import com.atmilan.quartz.mapper.PaoloProductSkuMapper;
import com.atmilan.quartz.model.entity.paolo.PaoloProductSku;
import com.atmilan.quartz.service.IPaoloProductSkuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class IPaoloProductSkuServiceImpl extends ServiceImpl<PaoloProductSkuMapper, PaoloProductSku> implements IPaoloProductSkuService {
    @Resource
    PaoloProductSkuMapper paoloProductSkuMapper;

    @Override
    public void deleteAll() {
        paoloProductSkuMapper.deleteAll();
    }

    @Override
    public void copyAll() {
        paoloProductSkuMapper.deleteProductSkuBack();
        paoloProductSkuMapper.copyProductSkuBack();
    }
}
